<template>
	<view class="page">
		<uni-card title="核酸报告结果通知">
			您的检验报告已完成，请查收
			<!-- <text class="text2">您的检验报告已完成，请查收</text> -->
			<table>
				<tr>
					<th>就诊医院</th>
					<td>{{hospital}}</td>
				</tr>
				<tr>
					<th>姓名</th>
					<td>{{name}}</td>
				</tr>
				<tr>
					<th>检验项目</th>
					<td>新冠核酸检测</td>
				</tr>
				<tr>
					<th>报告单号</th>
					<td>{{number}}</td>
				</tr>
				<tr>
					<th>报告时间</th>
					<td>{{time}}</td>
				</tr>
				<tr>
					<th>备注</th>
					<td>点击详情查看完整报告，感谢您的使用</td>
				</tr>
			</table>
			<hr>
			<button type="button" @click="see">查看详情</button>
		</uni-card>
	</view>
</template>

<script>
	export default {
		name:"testResult",
		props:{
			name:String,
			hospital:String,
			number:String,
			time:String,
			items:String
		},
		data() {
			return {
				items:this.items
			};
		},
		methods:{
			see(){
				let _this = this
				uni.$emit('update',{
					hospital:_this.hospital,
					number:_this.number,
					time:_this.time
				})
				
			}
		}
	}
</script>

<style scoped>
	.page{
		max-width: 1080px;
		overflow-x: hidden;
		/* margin: 0px; */
		padding: 0px;
		text-align: center;
	}
	button{
	    background-color: rgb(0, 170, 255);
	    color: white;
	    font-size: 16px;
	    text-align: center;
	    border: rgb(235, 227, 227);
	    border-radius: 8px;
	    width: 100px;
	    height: 30px;
		line-height: 30px;
		margin-top: 10px;
	}
	td{
	    text-align: center;
		width:60%
	}
</style>